import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-myc02-emplist',
  templateUrl: './myc02-emplist.component.html',
  styleUrls: ['./myc02-emplist.component.css']
})
export class Myc02EmplistComponent implements OnInit {

  constructor() { }

  ngOnInit(): void {
  }

  empList = [
    {eid:101, ename:"冰冰", salary:5000, birthday:0, sex:0, zzmm:10},
    {eid:102, ename:"曹操", salary:5000, birthday:0, sex:1, zzmm:20},
    {eid:103, ename:"孙权", salary:5000, birthday:0, sex:1, zzmm:30},
    {eid:104, ename:"热巴", salary:5000, birthday:1000 * 3600 * 24 * 365 * 50, sex:0, zzmm:10},
    {eid:105, ename:"zhang san", salary:5000, birthday:0, sex:0, zzmm:10},
  ]

  doDelete(i: number) {
    this.empList.splice(i, 1)
  }
}
